<?php
header('Content-type:text/html; charset=utf-8');
require_once 'duck.php';
require_once 'pangDuck.php';
require_once 'duckBehavior/fly.php';
require_once 'duckBehavior/quck.php';
$duck = new Duck();
$duck->name = '小花';
//echo $duck->quck();

$duck = new PangDuck();
$duck->setFly(new Fly());
$duck->setQuck(new Quck());
$duck->name = '胖迪';
$duck->say();
echo $duck->sleep();